package uniandes.dermatologia.resources;

import uniandes.dermatologia.models.Consultation;

public class Result {

	private Long resultId;

	private Consultation consultation;

	private RowDiseaseAbstraction disease;

	private int score;

	private boolean utility;

	public Result() {

	}

	public Result(Consultation nConsultation, RowDiseaseAbstraction nDisease,
			int nScore, boolean nUtility) {
		super();
		this.consultation = nConsultation;
		this.disease = nDisease;
		this.score = nScore;
		this.utility = nUtility;
		this.resultId = disease.getResultId();
	}

	public Long getResultId() {
		return resultId;
	}

	public void setResultId(Long resultId) {
		this.resultId = resultId;
	}

	public Consultation getConsultation() {
		return consultation;
	}

	public void setConsultation(Consultation consultation) {
		this.consultation = consultation;
	}

	public RowDiseaseAbstraction getDisease() {
		return disease;
	}

	public void setDisease(RowDiseaseAbstraction disease) {
		this.disease = disease;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public boolean isUtility() {
		return utility;
	}

	public void setUtility(boolean utility) {
		this.utility = utility;
	}

	public void toggleChecked() {
		utility = !utility;
	}

}
